package org.japo.java.gui.samples;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

class GEA implements ActionListener {

    private IGU igu;

    GEA(IGU igu) {
        this.igu = igu;
    }

    @Override
    public void actionPerformed(ActionEvent ae) {
        Object o = ae.getSource();
        if (o.equals(igu.txfUser)) {
            igu.psfPass.requestFocus();
        } else if (o.equals(igu.psfPass)) {
            igu.btnAceptar.requestFocus();
        }
    }
}
